{extend name="common/base" /}
{block name="title"}添加商品详情{/block}
{block name="main"}

<script src="/ad/js/g_add/g_add_deta.js"></script>
     <!-- Navigation -->
	   <div id="page-wrapper">
        <div class="col-md-12 graphs">
		<div class="xs">
  	    <h3>添加商品详情</h3>
        <div class="well1 white" style="float: left;">
        <h5 ><a href="{:url('/admin/Goods/g_list')}"><span class="label label-success">返回列表</span></a></h5>
        {notempty name="res['goods_id']"}
          <h5 ><a href="{:url('/admin/Goods/g_add',array('goods_id'=>$res['goods_id']))}"><span class="label label-success">基本参数</span></a></h5>
          <h5 ><a href="{:url('/admin/Goods/g_add_details',array('id'=>$res['goods_id']))}"><span class="label label-success">商品详情</span></a></h5>
          <h5 ><a href="{:url('/admin/Goods/g_add_tu',array('id'=>$res['goods_id']))}"><span class="label label-success">商品图片</span></a></h5>
        {/notempty}
        </div>
  	    <div class="well1 white">
        <form class="form-floating" id="g_add_deta" novalidate="novalidate" action="{:url('Goods/dog_add_deta')}" method ='post' enctype="multipart/form-data">
          <fieldset>
            <div class="form-group">
              <label class="control-label">商品名称</label>
              <input  type="text" class="form-control1" value="{$g_info['goods_title']}" required="" disabled>
              <input type="hidden" name="goods_id" value="{$g_info['goods_id']}">
            </div>
            <div class="form-group">
              <label class="control-label">原料产地</label>
              <input name="goods_materials_place" type="text" class="form-control1"  value="{$res['goods_materials_place']?$res['goods_materials_place']:''}" placeholder="请输入原料产地">
            </div>
            <div class="form-group">
              <label class="control-label">配料</label>
              <input name="goods_burdening" type="text" class="form-control1"  value="{$res['goods_burdening']?$res['goods_burdening']:''}" placeholder="请输入配料">
            </div>
            <div class="form-group">
              <label class="control-label">生产规格</label>
              <input name="goods_standard" type="text" class="form-control1"  value="{$res['goods_standard']?$res['goods_standard']:''}" placeholder="请输入生产规格">
            </div>
            <div class="form-group">
              <label class="control-label">保质期</label>
              <input name="goods_date" type="text" class="form-control1"  value="{$res['goods_date']?$res['goods_date']:''}" placeholder="请输入保质期">
            </div>
            <div class="form-group">
              <label class="control-label">产品标准号</label>
              <input name="goods_product_number" type="text" class="form-control1"  value="{$res['goods_product_number']?$res['goods_product_number']:''}" placeholder="请输入产品标准号">
            </div>
            <div class="form-group">
              <label class="control-label">生产许可证</label>
              <input name="goods_production_certificate" type="text" class="form-control1"  value="{$res['goods_production_certificate']?$res['goods_production_certificate']:''}" placeholder="请输入生产许可证">
            </div>
            <div class="form-group">
              <label class="control-label">储存方法</label>
              <input name="goods_reserve" type="text" class="form-control1"  value="{$res['goods_reserve']?$res['goods_reserve']:''}" placeholder="请输入储存方法">
            </div>
            <div class="form-group">
              <label class="control-label">食用方法</label>
              <input name="goods_edible" type="text" class="form-control1"  value="{$res['goods_edible']?$res['goods_edible']:''}" placeholder="请输入食用方法">
            </div>
            <div class="form-group">
              <label class="control-label">商品详情</label>
              <!-- 加载编辑器的容器 -->
              <script id="container" name="goods_content" type="text/plain">{$res['goods_content']}</script>
              <!-- 配置文件 -->
              <script type="text/javascript" src="/static/ueditor/ueditor.config.js"></script>
              <!-- 编辑器源码文件 -->
              <script type="text/javascript" src="/static/ueditor/ueditor.all.js"></script>
              <!-- 实例化编辑器 -->
              <script type="text/javascript">
                  var ue = UE.getEditor('container');
              </script>
            </div>
            <div class="form-group">
              <button type="button" class="btn btn-primary">下一步</button>
              <button type="reset" class="btn btn-default">重置</button>
            </div>
          </fieldset>
        </form>
      </div>
    </div>
		{/block}



